package edu.ctbu.insurance.mapper;

import edu.ctbu.insurance.bean.Policy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.ctbu.insurance.service.PolicyService;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author djl
 * @since 2024-06-28
 */
public interface PolicyMapper extends BaseMapper<Policy> {
    public List<Policy> findPolicysByLike(@Param(value = "likePolicyType") String likePolicyType,@Param(value = "likeProductName") String likeProductName,@Param(value = "likeCustomerName") String likeCustomerName);

    int updatePolicyStatus();

    List<Object> getProductStatistics();

    List<Object> getCustomerStatistics();

    List<Object> getAddressStatistics();
}
